import { request } from '@/utils/request';

export interface ChangePasswordType {
  oldPassword: string;
  newPassword: string;
  confirmPassword: string;
}

export const changePassword = async (params: ChangePasswordType) =>
  await request('POST', '/changePassword', params);
